/*
 * 预约信息
 *
 * @Author:    开云
 * @Date:      2023-09-03 21:47:28
 * @Wechat:    zhuda1024
 * @Email:     lab1024@163.com
 * @Copyright  1024创新实验室 （ https://1024lab.net ），Since 2012
 */
import { postRequest, getRequest } from '@/lib/smart-request';

export const reservationApi = {
  // 新建预约
  create: (param) => {
    return postRequest('/oa/reservation/add4public', param);
  },

  // 查询预约详情 @author 开云
  detail: (reservationId) => {
    return getRequest(`/oa/reservation/get/${reservationId}`);
  },

  // 分页查询预约模块 @author 开云
  pageQuery: (param) => {
    return postRequest('/oa/reservation/queryPage', param);
  },

  // 分页查询预约模块 @author 开云
  queryPage4public: (param) => {
    return postRequest('/oa/reservation/queryPage4public', param);
  },

  // 更新状态 @author 开云
  status: (param) => {
    return postRequest('/oa/reservation/status', param);
  },
};
